package cn.jiyun.user.controller;

import cn.jiyun.user.entity.Shop;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.jiyun.user.service.IShopService;
import java.util.List;


import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author usian
 * @since 2022-10-25
 */
@RestController
@RequestMapping("/shop")
@Api(tags = "门店管理")
@CrossOrigin
public class ShopController{

    @Autowired
    private IShopService shopService;

    @ApiOperation("查询所有")
    @PostMapping("/list")
    public List<Shop> findAll(){
        return shopService.findAll();
    }

}
